package com.chaofan.dao;

import com.chaofan.entity.User;
import org.mybatis.spring.support.SqlSessionDaoSupport;

import java.util.List;

public class UserDaoImpl2 extends SqlSessionDaoSupport implements UserDao{

    @Override
    public List<User> selectUser() {
        return getSqlSession().getMapper(UserDao.class).selectUser();
    }

    @Override
    public User getUser(int id) {
        return getSqlSession().getMapper(UserDao.class).getUser(id);
    }
}
